.class Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;
.super Ljava/lang/Object;
.source "ReginaLauncher.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/ReginaLauncher$ElementLoader;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

.field final synthetic val$appWidgetId:I

.field final synthetic val$eId:J

.field final synthetic val$eX:F

.field final synthetic val$eY:F

.field final synthetic val$eZ:F

.field final synthetic val$item_type:I

.field final synthetic val$workspace:Lcom/nemustech/regina/RGWorkspace;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ReginaLauncher$ElementLoader;ILcom/nemustech/regina/RGWorkspace;JIFFF)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1988
    iput-object p1, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->this$1:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    iput p2, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$appWidgetId:I

    iput-object p3, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$workspace:Lcom/nemustech/regina/RGWorkspace;

    iput-wide p4, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$eId:J

    iput p6, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$item_type:I

    iput p7, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$eX:F

    iput p8, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$eY:F

    iput p9, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$eZ:F

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    .line 1991
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->this$1:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    iget-object v1, v1, Lcom/nemustech/regina/ReginaLauncher$ElementLoader;->this$0:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v1}, Lcom/nemustech/regina/ReginaLauncher;->access$700(Lcom/nemustech/regina/ReginaLauncher;)Lcom/nemustech/regina/ElementMaker;

    move-result-object v1

    iget v2, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$appWidgetId:I

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ElementMaker;->createAndroidWidget(I)Lcom/nemustech/regina/Element;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/ElementAndroidWidget;

    .line 1992
    .local v0, aElement:Lcom/nemustech/regina/ElementAndroidWidget;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementAndroidWidget;->getHostView()Landroid/appwidget/AppWidgetHostView;

    move-result-object v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$workspace:Lcom/nemustech/regina/RGWorkspace;

    if-eqz v1, :cond_0

    .line 1993
    const-string v1, "ReginaLauncher"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "APPWIDGET workspace="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$workspace:Lcom/nemustech/regina/RGWorkspace;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " workspaceview="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$workspace:Lcom/nemustech/regina/RGWorkspace;

    invoke-virtual {v3}, Lcom/nemustech/regina/RGWorkspace;->getWorkspaceView()Lcom/nemustech/regina/WorkspaceView;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x1

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1995
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$workspace:Lcom/nemustech/regina/RGWorkspace;

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementAndroidWidget;->setWorkspace(Lcom/nemustech/regina/RGWorkspace;)V

    .line 1996
    iget-wide v1, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$eId:J

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ElementAndroidWidget;->setElementId(J)V

    .line 1997
    iget v1, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$item_type:I

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementAndroidWidget;->setItemType(I)V

    .line 1998
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->this$1:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    iget-object v1, v1, Lcom/nemustech/regina/ReginaLauncher$ElementLoader;->this$0:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v1}, Lcom/nemustech/regina/ReginaLauncher;->access$800(Lcom/nemustech/regina/ReginaLauncher;)Lcom/nemustech/regina/ElementLocator;

    move-result-object v1

    iget v2, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$eX:F

    iget v3, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$eY:F

    iget v4, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$eZ:F

    invoke-virtual {v1, v0, v2, v3, v4}, Lcom/nemustech/regina/ElementLocator;->arrangeManual(Lcom/nemustech/regina/Element;FFF)V

    .line 1999
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->this$1:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    iget-object v1, v1, Lcom/nemustech/regina/ReginaLauncher$ElementLoader;->this$0:Lcom/nemustech/regina/ReginaLauncher;

    iget v2, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$appWidgetId:I

    invoke-static {v1, v0, v2}, Lcom/nemustech/regina/ReginaLauncher;->access$1200(Lcom/nemustech/regina/ReginaLauncher;Lcom/nemustech/regina/ElementAndroidWidget;I)V

    .line 2003
    :goto_0
    return-void

    .line 2001
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->this$1:Lcom/nemustech/regina/ReginaLauncher$ElementLoader;

    iget-object v1, v1, Lcom/nemustech/regina/ReginaLauncher$ElementLoader;->this$0:Lcom/nemustech/regina/ReginaLauncher;

    iget-wide v2, p0, Lcom/nemustech/regina/ReginaLauncher$ElementLoader$2;->val$eId:J

    invoke-virtual {v1, v2, v3}, Lcom/nemustech/regina/ReginaLauncher;->deleteElementFromDatabaseById(J)V

    goto :goto_0
.end method
